package com.tbryant.test.designpattern.zenofdesignpattern.template.extend;

/**
 * @author TBryant
 * @date 2021/10/26 17:03
 */
public class Class1 extends AbstractClass {

    @Override
    protected void doSomething1() {
        // 处理业务逻辑
    }

    @Override
    protected void doSomething2() {
        // 处理业务逻辑
    }

    // 需要跳过doSomething1方法的子类，重写该方法
    @Override
    protected boolean needDoSomething1() {
        return false;
    }
}
